import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm'
import { UserEntity } from '../entitys/user.entity';
import { LoginController } from './../controllers/login.controller';
import { LoginService } from '../services/login.service';
import { AuthorModule } from './authority.module'

@Module({
  imports: [
    TypeOrmModule.forFeature([UserEntity]),
    AuthorModule  // 引入并使用AuthorModule，在login对应的service中就可以使用authority模块
  ],
  controllers: [LoginController],
  providers: [LoginService],
})
export class LoginModule { }